JRKAN直播[直].js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // 道长 hipy仓库 https://github.com/hjdhnx/hipy-server
  2. var rule = {
  3. title: 'JRKAN直播',
  4. host: 'http://www.jrkankan.com/?lan=1',
  5. // JRKAN备用域名:www.jrkankan.com / www.jrkan365.com / jrsyyds.com / www.jryyds.com / jrskan.com / jrsbxj.com
  6. // JRKAN网址发布:qiumi1314.com
  7. url: '/fyclass',
  8. searchUrl: '',
  9. searchable: 0,
  10. quickSearch: 0,
  11. class_name: '全部',
  12. class_url: '/',
  13. //class_url:'?live',
  14. headers: {
  15. 'User-Agent': 'MOBILE_UA'
  16. },
  17. timeout: 5000,
  18. play_parse: true,
  19. lazy: $js.toString(() => {
  20. let _id = input.match(/id=(.*?)&/)[1];
  21. _id = decodeURIComponent(_id);
  22. let html = request(input);
  23. // log(html);
  24. let src = html.match(/src='(.*?)'/)[1].replace('"+id1+"', _id);
  25. log('src:' + src);
  26. //let _url = `http://play.sportsteam356.com/play/${_id}.html`;
  27. let _url = urljoin(input, src);
  28. log('_url:' + _url);
  29. html = request(_url);
  30. _url = 'http:' + pdfh(html, 'iframe&&src');
  31. log('iframe_url:' + _url);
  32. function J_get(name, url) {
  33. url = url ? url : 'http://cloud.yumixiu768.com/player/msss.html?id=/live/705782/playlist.m3u8?k=f8444f76c5852ada0b6ac9181714b310&t=1819702363';
  34. var start = url.indexOf(name + '=');
  35. if (start == -1) return '';
  36. var len = start + name.length + 1;
  37. var end = url.indexOf('######', len);
  38. if (end == -1) end = url.length;
  39. return unescape(url.substring(len, end));
  40. }
  41. let id = J_get('id', _url);
  42. if (id) {
  43. let purl = "//hls.szsummer.cn" + id;
  44. if (!purl.startsWith('http')) {
  45. purl = 'https:' + purl;
  46. }
  47. log('play_url:' + purl);
  48. input = {parse: 0, url: purl};
  49. }
  50. }),
  51. limit: 6,
  52. double: false,
  53. 推荐: '*',
  54. 一级: $js.toString(() => {
  55. let d = [];
  56. let html = request(input);
  57. let tabs = pdfa(html, 'ul.d-touch');
  58. tabs.forEach((it) => {
  59. let ps = pdfh(it, '.name&&Text');
  60. let pz = pdfh(it, '.name:eq(1)&&Text');
  61. let pk = pdfh(it, '.name:eq(2)&&Text');
  62. let img = pd(it, 'img&&src');
  63. let timer = pdfh(it, '.lab_time&&Text');
  64. let url = pd(it, 'a.me&&href');
  65. d.push({
  66. title: pz + '🆚' + pk,
  67. desc: timer + '🏆' + ps,
  68. img: img,
  69. url: url
  70. });
  71. });
  72. setResult(d);
  73. }),
  74. 二级: {
  75. "title": ".sub_list li:lt(2)&&Text;.sub_list li:eq(0)&&Text",
  76. "img": "img&&src",
  77. "desc": ";;;.lab_team_home&&Text;.lab_team_away&&Text",
  78. "content": ".sub_list ul&&Text",
  79. "tabs": "js:TABS=['JRKAN直播']",
  80. lists: $js.toString(() => {
  81. //log(TABS);
  82. LISTS = [];
  83. let html = request(input);
  84. let data = pdfa(html, '.sub_playlist&&a');
  85. let lists1 = [];
  86. data.forEach((it) => {
  87. let name = pdfh(it, 'strong&&Text');
  88. let url1 = pdfh(it, 'a&&data-play');
  89. // log(url1);
  90. if (url1.length > 8) { //过滤无效选集
  91. let url = pd(it, 'a&&data-play', input);
  92. lists1.push(name + '$' + url);
  93. }
  94. });
  95. LISTS.push(lists1);
  96. }),
  97. },
  98. 搜索: '',
  99. }